//
//  DetailNewProductCollectionViewCell.m
//  Beauty
//
//  Created by Snow on 16/9/10.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "DetailNewProductCollectionViewCell.h"
#import "GXMacro.h"
@implementation DetailNewProductCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _image = [[UIImageView alloc] init];
        [self.contentView addSubview:_image];
        _labelOfProce = [[UILabel alloc]init];
        [self.contentView addSubview:_labelOfProce];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [_image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView.mas_left);
        make.top.mas_equalTo(self.contentView.mas_top);
        make.right.mas_equalTo(self.contentView.mas_right);
        make.height.mas_equalTo(self.contentView.mas_height).multipliedBy(0.7);
    }];
    [_labelOfProce mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(_image.mas_left);
        make.top.mas_equalTo(_image.mas_bottom);
        make.right.mas_equalTo(_image.mas_right);
        make.bottom.mas_equalTo(self.contentView.mas_bottom);
    }];
    _labelOfProce.textAlignment = 1;
}

@end
